<template>
  <a-switch :defaultChecked="option.defaultValue" @change="handleChange"></a-switch>
</template>

<script>
export default {
  name: 'Boolean',
  props: {
    option: {
      type: Object,
      required: false,
      default: () => {
        return {
          defaultValue: false
        };
      }
    },
    defaultHelp: {
      type: String,
      required: false,
      default: () => {
        return '';
      }
    }
  },
  methods: {
    handleChange(checked) {
      this.$emit('change', checked);
    }
  }
}
</script>

<style scoped>

</style>